﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Windows.Forms;
using TopVisionLog;
using VideoStream.Common;
using VideoStream.Model;
using VideoStream.Windows;

namespace VideoStream
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            TVLog.WriteLine("程序启动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
            TVLog.WriteLine("程序集:\r\n" + CommonFun.ApplicationDescribe);

            var readyStartup = CommonFun.StartupCheck();
            if (readyStartup)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                CommonFun.UpdateCheck();
                Application.Run(new Windows_Startup());
            }
            else
            {
                Application.Exit();
            }
        }
    }
}
